package mspbots.teams.data.core.synclogs;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

import java.time.LocalDateTime;

/**
 * mspbots.data.sync.autotask.badmessage.AtBadMsgRepository
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/7/21
 */
@Repository
public interface SyncLogsRepository extends R2dbcRepository<SyncLogs, Long> {

    /**
     * Clean up data after by start time
     *
     * @param cleanTime delete time
     * @return result bool
     */
    Mono<Boolean> deleteByTimeBefore(LocalDateTime cleanTime);
}
